<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<title>查询所有任务</title>
	<meta charset='utf-8'>


<script src="../../../static/js/jquery.min.js"></script>
<script src="../../../static/js/echarts.common.min.js"></script>
<script src="../../../static/js/echartsOne.js"></script>
	<link rel="stylesheet" href="../../../static/css/jquery.datatables.min.css" />
	<link rel="stylesheet" href="../../../static/css/buttons.dataTables.min.css" />
	<link rel="shortcut icon" href="../resources/favicon.ico" th:href="@{/static/favicon.ico}"/>
	<style>
		tbody td {
			text-align: center;
		}
	</style>

</head>
<body>
	</div>
	<!-- 表格 -->
	<table id="example" class="display" role="grid" aria-describedby="example_info">
		<thead>
			<tr>
				<th>作业名</th>
				<th>开始时间</th>
				<th>结束时间</th>
				<th>作业内容</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
            <tr th:each="item:${taskList}">
				<td th:text="${item.getTask_name()}"></td>
				<td th:text="${item.getTask_sta_time()}"></td>
				<td th:text="${item.getTask_end_time()}"></td>
				<td th:utext="${item.getTask_content()}"></td>
				<td align="center">
					                                <a id="bianji" >编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;
					                                <a href="#" id="delete">删除</a>
					                            </td>
			</tr>

		</tbody>
		<tfoot>
			<tr>
				<th>作业名</th>
				<th>开始时间</th>
				<th>结束时间</th>
				<th>作业内容</th>
			</tr>
		</tfoot>
	</table>

	<script src="../../../static/js/jquery.min.js"></script>
	<script src="../../../static/js/jquery.datatables.min.js"></script>
	<script src="../../../static/js/dataTables.buttons.min.js"></script>
	<script src="../../../static/js/jszip.min.js"></script>
	<script src="../../../static/js/buttons.html5.min.js"></script>
	<script src="../../../static/js/buttons.flash.min.js"></script>
	<script src="../../../static/js/pdfmake.min.js"></script>
	<script src="../../../static/js/vfs_fonts.js"></script>
	<script src="../../../static/js/buttons.print.min.js"></script>
	<script>
		$(document).ready(function() {
			$('#example').DataTable({
				dom: 'Bfrtip',
				language: {
					emptyTable: '没有数据',
					loadingRecords: '加载中...',
					processing: '查询中...',
					search: '检索:',
					lengthMenu: '每页 _MENU_ 件',
					zeroRecords: '没有数据',
					paginate: {
						'first': '第一页',
						'last': '最后一页',
						'next': '下一页',
						'previous': '上一页'
					},
					info: '第 _PAGE_ 页 / 总 _PAGES_ 页',
					infoEmpty: '没有数据',
					infoFiltered: '(过滤总件数 _MAX_ 条)',
				},
				buttons: [{
						extend: 'copyHtml5',
					},
					{
						extend: 'excelHtml5',
						title: 'Data export'
					},
					{
						extend: 'pdfHtml5',
						title: 'Data export'
					},
					{
						extend: 'csvHtml5',
						title: 'Data export'
					},
					{
						extend: 'print',
					}
				]
			});

			$(".buttons-copy").text('复制');
			$(".buttons-excel").text('导出到excel');
			$(".buttons-pdf").text('导出到pdf');
			$(".buttons-csv").text('导出到csv');
			$(".buttons-print").text('添加');
		});
	</script>
</body>
</html>
